﻿
$(function () {
    $("#box11").click(function () {
        location.href = "homePage";
    })
    ////判断登录
    //$("#TiJiao").click(function () {
    //    if (numberHefa) {
    //        //判断是否为空
    //        if ($("#nmuber").val() == "UserNumber") {
    //            $("#numberJingGao").text("请输入账号");
    //            return;
    //        }
    //        if ($("#pwd").val() == "UserPassword") {
    //            $("#pwdJingGao").text("请输入密码");
    //            return;
    //        }
    //        //传输
    //        $.post("@Url.Action("entryPage",'MyHome')", { number: $("#nmuber").val() , pwd : pwd }, function (data) {
    //            console.log("已接收");
    //            if (data.State == 1) {
    //                console.log(data.Message);
    //            }
    //            if (data.State == 0) {
    //                console.log(data.Message);
    //                $("#home-register").animate({}, 2000, function () {
    //                    location.href = "homePage";
    //                })
    //            }
    //        })
    //    }
    //})


    //按钮阴影
    $("#TiJiao").mouseenter(function () {
        var shedu = 0;
        var TiJiaoTime = setInterval(function () {
            $("#TiJiao").css("box-shadow", "0px 0px " + shedu + "px 0px #00BCD4");
            shedu = shedu + 1;
            if (shedu == 20) {
                clearInterval(TiJiaoTime);
            }
        }, 20);
    }).mouseleave(function () {
        var shedu = 20;
        var TiJiaoTime = setInterval(function () {
            $("#TiJiao").css("box-shadow", "0px 0px " + shedu + "px 0px #00BCD4");
            shedu = shedu - 1;
            if (shedu == 0) {
                clearInterval(TiJiaoTime);
            }
        }, 20);
    })
    //账号提示
    if ($("#nmuber").val() == "") {
        $("#nmuber").val("UserNumber");
    }
    if ($("#pwd").val() == "") {
        $("#pwd").val("UserPassword");
    }
    //标题文字阴影
    $("#home-BiaoTi").mouseenter(function () {
        var shedu = 0;
        var BiaoTiTime = setInterval(function () {
            $("#home-BiaoTi").css("text-shadow", "0px 0px " + shedu + "px #00BCD4");
            shedu = shedu + 1;
            if (shedu == 20) {
                clearInterval(BiaoTiTime);
            }
        }, 20);
    }).mouseleave(function () {
        var shedu = 20;
        var BiaoTiTime = setInterval(function () {
            $("#home-BiaoTi").css("text-shadow", "0px 0px " + shedu + "px #00BCD4");
            shedu = shedu - 1;
            if (shedu == 0) {
                clearInterval(BiaoTiTime);
            }
        }, 20);
    })
  
   
})